package com.app.qbake.module.square.activity;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.wind.base.BaseActivity;
import com.wind.base.utils.ActivityUtil;
import com.wind.base.utils.Navigator;
import com.app.qbake.R;
import com.app.qbake.module.square.SellerHomeTabFragment;

public class SellerHomeActivity extends BaseActivity {

    public static void start(Context context,String toUid){
        Navigator.navigate(context,SellerHomeActivity.class,toUid);
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_seller_home);
        String toUid= Navigator.getSerializableExtra(this);
        replaceFragment(SellerHomeTabFragment.getInstance(toUid));

        $(R.id.iv_back).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                ActivityUtil.finish(getActivity());
            }
        });
    }


}
